package com.woniuxy.dao;

import com.woniuxy.entity.Merchants;
import com.woniuxy.entity.Organization;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface OrganizationDao {
    List<Organization> findAll();
    List<String> findType();
    List<String> findAttr();
    List<String> findCategory();
    int addOne(Organization organization);
    int updateOne(Organization organization);
    int deleteOne(int id);
    List<Organization> findByContext(Organization organization);
    List<Organization> findParent();
    List<Organization> findChildren(String org_name);
    int batchDelete(int[] ids);
    int addBatch(List<Organization> list);
    String findByNo(String no);
}
